Origin Tracking for Higher-order Term Rewriting Systems 1 Origin Tracking

نویسنده

  • Arie van Deursen
چکیده

Origin Tracking is a technique which, in the framework of rst-order term rewriting systems, establishes relations between each subterm t of a normal form and a set of subterms, the origins of t, in the initial term. Origin tracking is based on the notion of residuals. It has been used successfully for the generation of error handlers and de-buggers from algebraic speciications of programming languages. Recent experiments with the use of higher-order algebraic speciications for the deenition of programming languages, revealed a need to extend origin tracking to higher-order term rewriting systems. This extension is discussed, covering a deenition and some alternatives, as well as an assessment with respect to existing speciications. When algebraic speciications are being executed as term rewriting systems (TRSs), computations are performed by reducing an initial term to its result value | its normal form. Often, it is enough just to compute this result value, but in many cases it can be useful to have some more information. For instance, one may wish to know how the initial term innuenced the normal form; are there perhaps parts of the initial term that were copied without a change to the result term? Or, if a subterm of the normal form does not literally recur in the initial term, can it be possible to identify a set of subterms in the initial term which in some sense were responsible for its the creation? Trying to capture how intermediate and nal terms originate from the initial term is formalized in a notion called origin tracking Ber91, Ber92, DKT93]. Origin tracking is based on so-called residuals, which have been used successfully in more theoretically oriented papers HL91, Mar91] for reasoning about optimal reduction strategies in TRSs. 1.1 Applications Our motivation to work on origin tracking was that we needed it for the automatic generation of tools from algebraic speciications of programming languages. As an example,

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Centrum Voor Wiskunde En Informatica Reportrapport Origin Tracking in Primitive Recursive Schemes Origin Tracking in Primitive Recursive Schemes

Algebraic speciications of programming languages can be used to generate language-speciic programming support tools. Some of these can be obtained in a straightforward way by executing language speciications as term rewriting systems. More advanced tools can be obtained if the term rewriting machinery is extended with origin tracking. Origin tracking is a technique which automatically establish...

متن کامل

Origin Tracking in Attribute Grammars

Origin tracking is a technique for relating the output of a transformation back to its input. In term rewriting systems, where this notion was developed, it relates subtrees in the resulting normal form term to the original term. The technique is useful in several settings, including program debugging and error reporting. We show how origin tracking can be integrated into higher-order attribute...

متن کامل

Origin Tracking in Primitive Recursive Schemes

Algebraic speciications of programming languages can be used to generate language-speciic programming support tools. Some of these can be obtained in a straightforward way by executing language speciications as term rewriting systems. More advanced tools can be obtained if the term rewriting machinery is extended with origin tracking. Origin tracking is a technique which automatically establish...

متن کامل

Origin Tracking

In the framework of conditional, not necessarily orthogonal, term rewriting systems, we introduce the notion of an origin. Origins are relations between subterms of intermediate terms which occur during rewriting, and subterms of the initial term. Origin tracking is a method for incrementally computing origins during rewriting. Origins are a generalization of the well-known concept of residuals...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993